package com.wanmait.wisdom.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
* Created by Mybatis Generator 2024/04/26
*/
@Data
@TableName(value = "complaint")
public class Complaint implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
	* 业主id
	*/
    @TableField(value = "resident_id")
    private Integer residentId;

    //业主对象
    @TableField(exist = false)
    private Resident resident;

    /**
	* 投诉位置(描述)
	*/
    @TableField(value = "complaint_location")
    private String complaintLocation;

    /**
	* 投诉内容
	*/
    @TableField(value = "complaints")
    private String complaints;

    /**
	* 投诉时间
	*/
    @TableField(value = "complaint_time")
//    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date complaintTime;

    /**
	* 受理人(员工ID)
	*/
    @TableField(value = "staff_id")
    private Integer staffId;

    //员工对象
    @TableField(exist = false)
    private Staff staff;

    /**
	* 处理时间
	*/
    @TableField(value = "processing_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date processingTime;

    /**
     * 反馈
     */
    @TableField(value = "feedback")
    private String feedback;


    /**
	* 处理状态
	*/
    @TableField(value = "processing_status")
    private Integer processingStatus;


    private static final long serialVersionUID = 1L;
}
